﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace chesslibrary.cs
{
    public class ChessException:Exception
    {
        private int row, col;
        public ChessException(string s, int row, int col)
            : base(s + " (" + row.ToString() + col.ToString() + ")")
        {
            this.row = row;
            this.col = col;
        }
        public ChessException(String s, properties_cell square)
            : base(s + " (" + square.Row.ToString() + square.Col.ToString() + ")")
        {
            row = square.Row;
            col = square.Col;
        }
        public ChessException(String s) : base(s) { }

        public int Row
        {
            get { return row; }
        }
        public int Col
        {
            get { return col; }
        }
    }
}
